# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from api.internal.admin.maestro.users import UserView, login, logout, get_user_preset, SingleUserView
from api.internal.admin.maestro.merchant import MerchantView, SingleMerchantView

urlpatterns = patterns(
    '',
    # 用戶相關
    url(r'^user/login/?$', login),
    url(r'^user/get_user_preset/?', get_user_preset),
    url(r'^user/logout/?$', logout),
    url(r'^user/register/?$', UserView.as_view()),
    url(r'^user/update_password/(?P<user_id>\d+)/?$', SingleUserView.as_view()),
    # 商戶管理
    url(r'^merchant/?$', MerchantView.as_view()),
    url(r'^merchant/(?P<merchant_id>\d+)/?$', SingleMerchantView.as_view()),
)
